home *** CD-ROM | disk | FTP | other *** search
- import com.siemens.mp.game.GraphicObject;
- import com.siemens.mp.game.Sprite;
-
- // $FF: renamed from: c
- public class class_0 extends Sprite {
- // $FF: renamed from: else int
- public static final int field_0 = 3;
- // $FF: renamed from: f int
- public int field_1 = 138;
- // $FF: renamed from: if int
- public int field_2 = 16;
- // $FF: renamed from: for int
- public int field_3 = 16;
- // $FF: renamed from: a int
- public int field_4 = 4;
- // $FF: renamed from: char int
- public int field_5 = 1902;
- // $FF: renamed from: null int
- public int field_6;
- // $FF: renamed from: d int
- public static int field_7 = 3;
- // $FF: renamed from: long int
- public int field_8;
- // $FF: renamed from: e byte[]
- public static byte[] field_9;
- // $FF: renamed from: h byte[]
- public static byte[] field_10;
- // $FF: renamed from: do byte
- byte field_11;
- // $FF: renamed from: byte boolean
- public boolean field_12;
- // $FF: renamed from: case int
- public static int field_13 = 0;
- // $FF: renamed from: g int
- public static int field_14 = 0;
- // $FF: renamed from: c int
- public int field_15;
- // $FF: renamed from: b int
- public int field_16;
- // $FF: renamed from: new int
- public int field_17;
- // $FF: renamed from: try int
- public int field_18;
- // $FF: renamed from: int int
- public int field_19;
- // $FF: renamed from: goto boolean
- public boolean field_20;
- // $FF: renamed from: void boolean
- private boolean field_21;
-
- public class_0() throws Exception {
- super(field_9, 0, 16, 16, field_10, 0, 7);
- this.field_6 = this.field_5;
- this.field_8 = 138;
- this.field_11 = 3;
- this.field_12 = false;
- this.field_19 = 0;
- this.field_20 = false;
- this.field_21 = false;
- ((Sprite)this).setCollisionRectangle(2, 0, 13, 16);
- }
-
- // $FF: renamed from: a (int, int, int) void
- public void method_0(int var1, int var2, int var3) {
- this.field_15 = var2;
- this.field_16 = var3;
- this.field_1 = var3;
- this.field_5 = var1;
- this.field_6 = this.field_5;
-
- try {
- ((Sprite)this).setPosition(this.field_15, this.field_16);
- ((GraphicObject)this).setVisible(true);
- } catch (Exception var5) {
- ((Throwable)var5).printStackTrace();
- }
-
- this.field_17 = 1;
- this.field_12 = false;
- }
-
- // $FF: renamed from: if () void
- public void method_1() {
- field_7 = 3;
- field_13 = 0;
- field_14 = 0;
- this.field_19 = 0;
- }
-
- // $FF: renamed from: a () void
- public void method_2() {
- switch (h.J) {
- case 1:
- if (h.G[this.field_5 + 1] == h.g || h.G[this.field_5] == h.g || h.G[this.field_5 + 2] == h.g || h.G[this.field_5 + 1] == h.Q || h.G[this.field_5 + 1] == h.r) {
- if (Math.abs(h.z - this.field_16) < 40 && h.z - this.field_4 > h.n) {
- h.z -= this.field_4;
- }
-
- if (h.G[this.field_5] == h.g) {
- this.field_6 = this.field_5--;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
- }
-
- if (h.G[this.field_5 + 2] == h.g) {
- this.field_6 = this.field_5++;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
- }
-
- this.field_6 = this.field_5;
- this.field_5 -= h.t;
- this.field_1 -= this.field_4;
- this.field_16 -= this.field_4;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition(), ((Sprite)this).getYPosition() - this.field_4);
- if (this.field_21) {
- this.field_17 = 5;
- } else {
- this.field_17 = 6;
- }
-
- this.field_21 ^= true;
- }
- break;
- case 2:
- if ((h.G[this.field_5 - 1 + h.t] == h.Q || h.G[this.field_5 - 1 + h.t] == h.r) && h.G[this.field_5 - 1] != h.Q && h.G[this.field_5 - 1] != h.r) {
- if (Math.abs(h.A - this.field_15) < 40 && h.A - this.field_4 >= h.M) {
- h.A -= this.field_4;
- }
-
- this.field_6 = this.field_5--;
- this.field_15 -= this.field_4;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
- if (this.field_21) {
- this.field_17 = 3;
- } else {
- this.field_17 = 4;
- }
-
- this.field_21 ^= true;
- }
- case 3:
- case 4:
- default:
- break;
- case 5:
- if ((h.G[this.field_5 + 3 + h.t] == h.Q || h.G[this.field_5 + 3 + h.t] == h.r) && h.G[this.field_5 + 3] != h.Q && h.G[this.field_5 + 3] != h.r) {
- if (Math.abs(h.A + h.char - this.field_15) < 50 && h.A + this.field_4 < h.L) {
- h.A += this.field_4;
- }
-
- this.field_6 = this.field_5++;
- this.field_15 += this.field_4;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
- if (this.field_21) {
- this.field_17 = 1;
- } else {
- this.field_17 = 2;
- }
-
- this.field_21 ^= true;
- }
- break;
- case 6:
- if (this.field_5 + h.t < 2000 && this.field_1 < this.field_8 && (h.G[this.field_5 + 1] == h.g && h.G[this.field_5 + 1 + h.t] == h.g || h.G[this.field_5 + 1 + 2 * h.t] == h.g || h.G[this.field_5 + 2 * h.t] == h.g || h.G[this.field_5 + 2 + 2 * h.t] == h.g)) {
- if (Math.abs(h.z + h.v - this.field_16) < 40 && h.z + this.field_4 <= h.o) {
- h.z += this.field_4;
- }
-
- if (h.G[this.field_5 + 2 * h.t] == h.g) {
- this.field_6 = this.field_5--;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
- }
-
- if (h.G[this.field_5 + 2 + 2 * h.t] == h.g) {
- this.field_6 = this.field_5++;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
- }
-
- this.field_16 += this.field_4;
- this.field_6 = this.field_5;
- this.field_5 += h.t;
- this.field_1 += this.field_4;
- ((Sprite)this).setPosition(((Sprite)this).getXPosition(), ((Sprite)this).getYPosition() + this.field_4);
- if (this.field_21) {
- this.field_17 = 5;
- } else {
- this.field_17 = 6;
- }
-
- this.field_21 ^= true;
- }
- }
-
- ((Sprite)this).setFrame(this.field_17);
- }
- }
-